package org.jradweb.core.controller;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jradweb.core.utils.StringUtils;
import org.jradweb.core.web.JFlashScope;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
import org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException;
import org.springframework.web.servlet.view.RedirectView;

/**
 * Super Class of Controller
 * 
 * Created On 2008-3-12
 * 
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: JMultiActionController.java 45476 2008-04-23 07:05:40Z
 *          paul.wang $
 */
public abstract class JMultiActionController extends
		AbstractMultiActionController<Integer> {
	
	
	/**
	 * @return id or null
	 * @throws NumberFormatException
	 */
	@Override
	public Integer getId(HttpServletRequest request) {
		String id = request.getParameter("id");
		return id == null ? null : Integer.parseInt(id);
	}

}
